home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
util
/
rexx
/
xdmd1.lha
/
Compile.xdme
< prev
next >
Wrap
Text File
|
1994-01-07
|
447b
|
23 lines
/* Compile.xdme */
options results
address 'XDME.1'
'rxresult $filename'
F = result
D = lastpos(".", F)
N = '"' || delstr(F, D) || '"'
Ext = delstr(F, 1, D)
F = '"' || F || '"'
select
when Ext = "c" then C = "bin:gcc" F "-Wall -o" N
when Ext = "cc" then C = "bin:gcc" F "-Wall -lg++ -o" N
when Ext = "e" then C = "EC >t:err" N
otherwise exit
end
C = '(' || C || ')'
'title' C
'execute' C
'title (Compiling finished or halted.)'